﻿using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections;
using System;

public class pointerid : MonoBehaviour,IPointerDownHandler,IPointerUpHandler,IPointerExitHandler{

    int fingerId = -1;

    public void OnPointerDown(PointerEventData eventData)
    {
        //eventData.pointerId 如果是PC端 鼠标左键是-1 鼠标中键-2 鼠标-3
        //移动端如果是多指触控，值是多少待测试？？？？？
        Debug.LogError("OnPointerDown:"+eventData.pointerId);
    }

    public void OnPointerExit(PointerEventData eventData)
    {
        Debug.LogError("OnPointerExit:" + eventData.pointerId);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        Debug.LogError("OnPointerUp:" + eventData.pointerId);
    }

    // Use this for initialization
    void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
